import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';

export class RegisterDto {
  @IsNotEmpty()
  @IsString()
  @ApiProperty({
    required: true,
    example: 'username'
  })
  username: string;

  @IsNotEmpty()
  @IsString()
  @ApiProperty({
    required: true,
    example: '123456'
  })
  password: string;
}
